package me.sealer.ssm.page;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 功能描述： $ PageResult
 *
 * @author sealer
 * @email 1178884049@qq.com
 * @date 2019年11月18日 15时55分07秒
 */
@Getter
@Setter
@ApiModel(value = "分页结果返回对象")
public class PageResult<T> {
    @ApiModelProperty(value = "总元素数")
    private Integer totalElements;

    @ApiModelProperty(value = "结果列表")
    private List<T> list;

    @ApiModelProperty(value = "当前页数")
    private Integer pageNo;

    @ApiModelProperty(value = "每页返回数据条数")
    private Integer pageSize;

    @Deprecated
    @ApiModelProperty(value = "总页数")
    private Integer totalPages;

    @Deprecated
    @ApiModelProperty(value = "是否是首页")
    private Boolean first;

    @Deprecated
    @ApiModelProperty(value = "是否是尾页")
    private Boolean last;
}
